package org.fast.easy.auth.service;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.fast.easy.core.util.MapstructUtils;
import org.fast.easy.system.upms.domain.vo.SysSocialVo;
import org.fast.easy.system.upms.service.ISysSocialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 类说明
 *
 * @author YanMing
 * @date 2024/5/29
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class SocialAuthService implements ISocialAuthService {
    private final ISysSocialService sysSocialService;
    @Override
    public List<SysSocialVo> selectByAuthId(String authId) {
        List<SysSocialVo> list = sysSocialService.selectByAuthId(authId);
        return MapstructUtils.convert(list, SysSocialVo.class);
    }
}
